<template>
  <div id="activeTopSearch">
    <div class="search-box">
      <el-form
        ref="ruleForm"
        :inline="true"
        :model="formInline"
        :rules="rules"
        class="demo-form-inline"
      >
        <el-form-item label="员工姓名：" prop="activityId">
          <el-input
            style="width:200px"
            v-model="formInline.condition"
            placeholder="请输入员工号/姓名/手机号"
            clearable
          ></el-input>
        </el-form-item>
        <el-form-item class="s-btn">
          <el-button type="success" icon="el-icon-search" @click="toSearch()">
            查询
          </el-button>
          <el-button type="success" plain @click="reset">
            重置
          </el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
import { sysNormalDisable } from '@utils/dictionariesFunc'
export default {
  name: 'activeTopSearch',
  msg: '活动分析-顶部搜索',
  props: {
    formInline: {
      type: Object,
      default: function() {
        return {
          condition: ''
        }
      }
    }
  },
  data() {
    return {
      rules: {}
    }
  },
  watch: {},
  mounted() {},
  methods: {
    /* 搜索 */
    toSearch(formName) {
      this.$emit('toSearch')
    },
    /* 重置 */
    reset() {
      this.$refs['ruleForm'].resetFields()
      this.setDefaultValue()
    },
    setDefaultValue() {
      this.formInline.condition = ''
    }
  }
}
</script>

<style lang="less"></style>
